home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / ptv1n2.arc / 43LINES.ASM < prev    next >
Assembly Source File  |  1990-06-14  |  749b  |  31 lines

  1. ; Code to put VGA into EGA emulation mode.
  2. ; (EGA mode remains in effect until explicitly changed.)
  3.  
  4.     MOV AX,3                ; reset video mode 3...
  5.     INT 10H            
  6.     MOV AX,1201H        ; ...and set 640 x 350 scan
  7.     MOV BX,0030H
  8.     INT 10H
  9.  
  10. ; Code to select small font.
  11. ; This gives 43 lines in EGA mode, 50 lines in normal VGA mode.
  12.  
  13.     MOV AX,3         ; reset video mode 3...
  14.     INT 10H
  15.     MOV AX,1112H        ; ...and switch to small font
  16.     MOV BL,0
  17.     INT 10H
  18.  
  19. ; To get back to 25 lines, just set same video mode again.
  20.  
  21.     MOV AX,3        ; reset video mode 3
  22.     INT 10H
  23.  
  24. ; Code to put the VGA back into its native video mode.
  25.  
  26.     MOV AX,3                ; reset video mode 3...
  27.     INT 10H            
  28.     MOV AX,1202H        ; ...and set 640 x 480 scan
  29.     MOV BX,0030H
  30.     INT 10H
  31.